package com.example.test4.com.it.dao;


import com.example.test4.com.it.domain.Company;
import com.example.test4.com.it.query.CompanyQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CompanyDao {
    public List<Company> findAll();
    public void save(Company company);
    public Company findOne(Integer id);
    public void delete(Integer id);
    public List<Company> findBy(CompanyQuery query);
}
